19. Day and Night Classification Challenge

Day and Night Classification

Now, you’re on your way to being able to build a more complex computer vision application: an image classifier! You know how to analyze color and brightness in a given image, and that skill alone can help you distinguish between different images.

So, I’m going to give you a classification challenge: Classify two types of images, taken during either the day or at night (when the sun has set), and I want you to separate these images into two classes: day or night.

Two images of the same scene. One taken during the day (left) and one at night.

Two images of the same scene. One taken during the day (left) and one at night.

Visualizing the Data

We’ll walk through each classification step together, but what do you think would be the first step in creating a classification model for day and night images?

Before you can classify any set of images, you have to look at them! Visualizing the image data you’re working with is the first step in identifying any patterns in image data and being able to make predictions about the data!

So, we’ll first load in this image data and learn a bit about the images we’ll be working with.